#ifndef HANOI_H
#define HANOI_H

#include <iostream>
using std::cout;

class Hanoi
{
public:
	void GetResult(int n, char A, char B, char C);
};

void Hanoi::GetResult(int n, char A, char B, char C)
{
	if (n == 1)
	{
		cout << "Move sheet " << n << " from " << A << " to " << C << '\n';
	}
	else
	{
		GetResult(n-1, A, C, B);
		cout << "Move sheet " << n << " from " << A << " to " << C << '\n';
		GetResult(n-1, B, A, C);
	}
}

#endif